let  Main =()=>import("@/views/Main.vue")
import { House, Histogram, ShoppingCart, Management, User, Setting } from '@element-plus/icons-vue'
export default[
    // 首页
    {
        path:"home",
        name:'home',
        component:()=>import('@/views/Home.vue'),
        meta:{
            title:'homepage',
            icon:House
        }
    },
    // 运营管理
    {
        path:"operationsmanage",
        name:'operationsmanage',
        component:Main,
        meta:{
            title:'operationsmanage.operationsmanage',
            icon:Histogram
        },
        children:[
            {
                path:"orderManage",
                name:'orderManage',
                component:()=>import("@/views/operationmanage/Ordermanage.vue"),
                meta:{
                    title:'operationsmanage.ordermanage'
                }
            },
            {
                path:"commentManage",
                name:'commentManage',
                component:()=>import("@/views/operationmanage/Commemanage.vue"),
                meta:{
                    title:'operationsmanage.commentmanage'
                }
            },
            {
                path:"freightManage",
                name:'freightManage',
                component:()=>import("@/views/operationmanage/Freightmanage.vue"),
                meta:{
                    title:'operationsmanage.freightmanage'
                }
            }
        ]
    },

    // 商品管理
    {
        path:'commoditymanage',
        name:'commoditymanage',
        component:Main,
        meta:{
            title:"commoditymanage.commoditymanage",
            icon:ShoppingCart
        },
        children:[
            {
                path:'commoditylist',
                name:"commoditylist",
                component:()=>import('@/views/commodmanage/Productlist.vue'),
                meta:{
                    title:"commoditymanage.commoditylist"
                }
            },
            {
                path:'groupcommodity',
                name:"groupcommodity",
                component:()=>import('@/views/commodmanage/Grouppurchase.vue'),
                meta:{
                    title:"commoditymanage.groupcommodity"
                }
            },
            {
                path:'categorymanage',
                name:"categorymanage",
                component:()=>import('@/views/commodmanage/Categorymanage.vue'),
                meta:{
                    title:"commoditymanage.categorymanage"
                }
            },
            {
                path:"producsetup",
                name:'producsetup',
                component:()=>import("@/views/commodmanage/ProducSetup.vue"),
                meta:{
                    title:"commoditymanage.producsetup",
                    hidden:false,//不显示在左边菜单
                    keepAlive:true
                }
            },
            {
                path:"producamend/:id",
                name:"producamend",
                component:()=>import("@/views/commodmanage/ProducSetup.vue"),
                meta:{
                    title:"commoditymanage.producamend",
                    hidden:false,//不显示在左边菜单
                    keepAlive:true
                }
            },
        ]
    },

    // 推广管理
    {
        path:'marketingmanage',
        name:'marketingmanage',
        component:Main,
        meta:{
            title:'marketingmanage.marketingmanage',
            icon:Management
        },
        children:[
            {
                path:'advertisingmanage',
                name:'advertisingmanage',
                component:()=>import("@/views/promotionmanage/Advertismanage.vue"),
                meta:{
                    title:'marketingmanage.advertisingmanage'
                }
            },
            {
                path:'couponmanage',
                name:'couponmanage',
                component:()=>import("@/views/promotionmanage/Couponmanage.vue"),
                meta:{
                    title:'marketingmanage.couponmanage'
                }
            }
        ]
    },
    // 用户管理
    {
        path:'usermanage',
        name:'usermanage',
        component:Main,
        meta:{
            title:"usermanage.usermanage",
            icon:User
        },
        children:[
            {
                path:'membermanage',
                name:'membermanage',
                component:()=>import("@/views/usermanage/Memmanage.vue"),
                meta:{
                    title:'usermanage.membermanage'
                }
            },
            {
                path:'addressadministration',
                name:'addressadministration',
                component:()=>import("@/views/usermanage/Addressmanage.vue"),
                meta:{
                    title:'usermanage.addressadministration'
                }
            }
        ]
    },
    // 系统管理
    {
        path:'systemmanage',
        name:'systemmanage',
        component:Main,
        meta:{
            title:"systemmanage.systemmanage",
            icon:Setting
        },
        children:[
            {
                path:'systemlayout',
                name:'systemlayout',
                component:()=>import("@/views/systemmanage/Systemconfig.vue"),
                meta:{
                    title:'systemmanage.systemlayout'
                }
            },
            {
                path:'administrator',
                name:'administrator',
                component:()=>import("@/views/systemmanage/Administra.vue"),
                meta:{
                    title:'systemmanage.administrator'
                }
            },
            {
                path:'operationlog',
                name:'operationlog',
                component:()=>import("@/views/systemmanage/Operationlog.vue"),
                meta:{
                    title:'systemmanage.operationlog'
                }
            },
            {
                path:'rolemanage',
                name:'rolemanage',
                component:()=>import("@/views/systemmanage/Rolemanage.vue"),
                meta:{
                    title:'systemmanage.rolemanage'
                }
            }
        ]
    }
]